import request from '@/api/request'

//查询退单列表
function findReturnApply(start,limit,data) {
  return request({
    url: `/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
    method:"POST",
    data
  })
}

//退单明细
function orderReturn(id,data) {
  return request({
    url: `/lejuAdmin/orderReturn/${id}`,
    data
  })
}

//同意退款
function agreeApply(id,data) {
  return request({
    url: `/lejuAdmin/orderReturn/agreeApply/${id}`,
    method:"POST",
    data
  })
}

//拒绝退款
function rejectApply(id,data) {
  return request({
    url: `/lejuAdmin/orderReturn/rejectApply/${id}`,
    method:"POST",
    data
  })
}

//收到退货
function receiveProduct(id,data) {
  return request({
    url: `/lejuAdmin/orderReturn/receiveProduct/${id}`,
    method:"POST",
    data
  })
}



export{
  findReturnApply,orderReturn,agreeApply,rejectApply,receiveProduct
}